<template>
  <router-view />
</template>

<script setup lang="ts">
import { getUrlParam } from './boot/paramhandler';
import { useAppStore } from './stores/app-store';

const initTokenHandler = () => {
  const {param} = getUrlParam()
  if (param.token) {
    const appStore = useAppStore();
    appStore.tokenLogin(param.token as string);
  }
}

initTokenHandler()
</script>
